package routers

import (
	"gin-project-01/gin-step02/gin07-controller/controllers/car"
	"github.com/gin-gonic/gin"
)

// CarRouters
//
//	@Description: 路由分组
//	@param r
func CarRouters(r *gin.Engine) {
	//http://localhost:8888/car
	routers := r.Group("/car")
	{

		//使用自定义控制器
		routers.GET("/", car.Index)

		routers.GET("/get", car.Detail)

		routers.GET("/del", car.Del)
	}
}
